import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Axios from 'axios';
Vue.prototype.axios = Axios;
Vue.config.productionTip = false
Vue.use(ElementUI)
import VueAMap from 'vue-amap'
// import Geocoder from '../node_modules/vue-amap'
Vue.use(VueAMap);
// Vue.use(Geocoder);
VueAMap.initAMapApiLoader({
    key: '5ab4c8586d4854707ddf0a30818033dc',
    plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geocoder'],
    uiVersion: '1.0',
    v: '1.4.4'
});

import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
    // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
    ak: 'CvARbZicmqQxLQ1Z0KbA9kDyRSx7YqHn'
})


new Vue({
    router,
    render: h => h(App),
}).$mount('#app')